package com.learn.demo.service.impl;

import java.util.ArrayList;

import com.learn.demo.dto.UserDto;
import com.learn.demo.entity.User;
import com.learn.demo.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *User操作类
 */
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDto userDto;

	@Override
	public void addUser(User user) {

		 userDto.addUser(user);
	}

	@Override
	public ArrayList<User> getUsers() {
		return userDto.getUsers();
	}
}
